/* eslint-disable indent */
import request from '@/utils/request'

// import { encrypt } from "@/utils/jsencrypt";
import { method } from 'lodash'
// import { isToken } from "typescript";
import proxy from '@/config/host'

export function getListData(params) {
  return request({
    url: `cenertech-inner-syfxxt-khfw/pd/khfw/fyjsdz/wcbgtj/list`,
    method: 'get',
    params: params,
    headers: {
      showLoading: true,
      showUploading: false,
    }
  })
}


export function getSelectorData_bgmc(params) {
  return request({
    url: `cenertech-inner-syfxxt-khfw/pd/khfw/fyjsdz/wcbgtj/selector/bgmc`,
    method: 'get',
    params: params,
    headers: {
      showLoading: false,
      showUploading: false,
    }
  })
}


export function exportExcel(download, data, filename) {
  download(
    "cenertech-inner-syfxxt-khfw/pd/khfw/fyjsdz/wcbgtj/export/excel",
    data,
    filename,
  );
}

